<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Project - View clients of session</title>
</head>
<body>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<c:choose>
	<c:when test="${empty requestScope.clients}">
		<p>No clients</p>
	</c:when>
	<c:otherwise>
		<ol>
			<c:forEach var="c" items="${requestScope.clients}">
				<li>
					<c:out value="${c.lastname} ${c.firstname}" /><br />
					<c:out value="${c.address}" /><br />
					<c:out value="${c.phone} - ${c.email}" /><br /><br />
				</li>
			</c:forEach>
		</ol>
	</c:otherwise>
</c:choose>

</body>
</html>